home *** CD-ROM | disk | FTP | other *** search
- <html>
-
- <head>
- <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
- <title>KeyCompare Action</title>
- <meta name="generator" content="Adobe GoLive 4">
- </head>
-
- <body bgcolor="white">
- <center>
- <font size="6">KeyCompare Action</font>
- <hr>
- </center>
- <csactionclass name="KeyPress" function="CSKeyCompare" nsversion="4" ieversion="4" actiontype="3">
- <csactionparam name="charCode" type="GLActionNumParam"></csactionparam>
- </csactionclass>
- <p>IE Stuff
- <script language="JavaScript1.2" src="../../GlobalScripts/IE.scpt" cyberversion="N1.2"></script>
- </p>
- <p>KeyPress
- <script language="JavaScript1.2" cyberversion="N1.2"><!--
- CSCurrentPressedKey = -1;
- function CSKeyPress(ev) {
- var code;
- if(IsIE()) CSCurrentPressedKey = event.keyCode;
- else CSCurrentPressedKey = ev.which;
- }
- document.onkeypress = CSKeyPress;
-
- function CSKeyCompare(condition)
- {
- var eq = (condition[1] == CSCurrentPressedKey);
- if(eq)
- CSCurrentPressedKey = -1;
- return eq;
- }
- // -->
- </script>
- </p>
-
- <table cool width="221" height="153" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
- <tr height="1" cntrlrow>
- <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
- <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
- <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
- <td width="140" height="1"><spacer type="block" width="140" height="1"></td>
- </tr>
- <tr height="6">
- <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
- <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
- <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
- <td width="140" height="6"><spacer type="block" width="140" height="6"></td>
- </tr>
- <tr height="3">
- <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
- <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
- <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
- <td width="140" height="146" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
- <csactioncntrl name="charCode" x="80" y="6" width="44" height="17" alignx="left" aligny="top">
- </td>
- </tr>
- <tr height="143">
- <td width="1" height="143"><spacer type="block" width="1" height="143"></td>
- <td width="4" height="143"><spacer type="block" width="4" height="143"></td>
- <td width="76" height="143" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
- <csactioncntrl type="InfoText" value="CharCode" x="4" y="9" width="55" height="16" alignx="left" aligny="top">
- </td>
- </tr>
- </table>
- </body>
-
- </html>
-